package com.net.xpay.common.dao.partner;

import com.net.xpay.common.domain.partner.PartnerSettleLog;
import com.net.xpay.common.model.PartnerUnionSettleLogResultModel;
import com.net.xpay.common.model.search.PartnerSettleLogSearchModel;
import com.net.xpay.common.model.search.PartnerUnionSettleLogSearchModel;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.common.annotation.DataCommon;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@DataCommon
@Repository
public interface PartnerSettleLogMapper extends PagedMapper<Long, PartnerSettleLog> {
    List<PartnerSettleLog> search(@Param("searchModel") PartnerSettleLogSearchModel searchModel, @Param("page") Page page);

    long searchCount(@Param("searchModel") PartnerSettleLogSearchModel searchModel);

    List<PartnerSettleLog> list(@Param("searchModel") PartnerSettleLogSearchModel searchModel);

    List<PartnerUnionSettleLogResultModel> searchUnion(@Param("searchModel") PartnerUnionSettleLogSearchModel searchModel, @Param("page") Page page);

    long searchUnionCount(@Param("searchModel") PartnerUnionSettleLogSearchModel searchModel);
}
